package com.ruoyi.company.service.impl;

import com.ruoyi.company.domain.CompanyScope;
import com.ruoyi.company.mapper.CompanyScopeMapper;
import com.ruoyi.company.service.ICompanyScopeServer;
import com.ruoyi.scope.domain.Scope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class CompanyScopeServerImpl implements ICompanyScopeServer {
    @Autowired
    CompanyScopeMapper companyScopeMapper;

    @Override
    public int insertCompanyScope(CompanyScope companyScope) {
        return companyScopeMapper.insertCompanyScope(companyScope);
    }

    @Override
    public List<CompanyScope> selectList(Map<String,Object> map) {
        return companyScopeMapper.selectList(map);
    }

    @Override
    public int deleteByCompanyIdAndScopeId(Map<String,Object> map) {
        return companyScopeMapper.deleteByCompanyIdAndScopeId(map);
    }

    @Override
    public CompanyScope selectScopeBySortAndDeptId(HashMap hashMap) {
        return companyScopeMapper.selectScopeBySortAndDeptId(hashMap);
    }

    @Override
    public List<CompanyScope> selectScopeByCompanyId(Long companyId) {
        return companyScopeMapper.selectScopeByCompanyId(companyId);
    }

    @Override
    public List<CompanyScope> allList() {
        return companyScopeMapper.allList();
    }

    @Override
    public List<CompanyScope> selectScopeByCompanyIdAndScopeClass(HashMap hashMap) {
        return companyScopeMapper.selectScopeByCompanyIdAndScopeClass(hashMap);
    }

    @Override
    public int deleteByCompanyId(HashMap hashMap) {
        return companyScopeMapper.deleteByCompanyId(hashMap);
    }


}
